<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmEditCalim">
        <f:view >
            <p:dialog id="dlgEditCalim"
                      widgetVar="wgEditCalim"
                      header="View Details Calim"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip"
                      >



                <h:panelGrid columns="2">         
                    <h:outputText value="Bill Number:"/>
                    <h:outputText value="#{calimManagement.selectClaim.billNumber}" title="BillNumber"/>
                    <h:outputText value="Claim Content:"/>
                    <p:commandButton id="btnShowContentCalim"
                                     value="Show"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     update=":frmShowContentCalim:pnShowContentCalim"
                                     onclick="wgShowContentCalim.show();"
                                     />


                    <h:outputText value="DateSend:"/>
                    <h:outputText value="#{calimManagement.selectClaim.dateSend.toLocaleString()}" title="DateSend">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="DateProcesse:"/>
                    <h:outputText value="#{calimManagement.selectClaim.dateProcesse.toLocaleString()}" title="DateProcesse">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="ClaimMoney:"/>
                    <h:outputText value="#{calimManagement.selectClaim.claimMoney}" title="ClaimMoney"/>
                    <h:outputText value="ClaimStatus:"/>
                    <h:outputText value="#{calimManagement.selectClaim.claimStatus}" title="ClaimStatus"/>
                    <h:outputText value="Full Name:"/>
                    <h:outputText value="#{calimManagement.selectClaim.users.fristName} #{calimManagement.selectClaim.users.lastName}" title="Full Name"/>
                    <h:outputText value="Users:"/>
                    <h:outputText value="#{calimManagement.selectClaim.users.userName}" title="Users"/>
                    <h:outputText value="Hospital:"/>
                    <h:outputText value="#{calimManagement.selectClaim.hospital.hospitalName}" title="Hospital"/>
                    <h:outputText value="ClaimType:"/>
                    <h:outputText value="#{calimManagement.selectClaim.claimType.claimTypeName}" title="ClaimType"/>
           
                    <h:outputLabel rendered="#{system.manager}" for="stClaim" value="Status :" />
                    <h:selectOneMenu rendered="#{system.manager}" id="stClaim" value="#{calimManagement.selectClaim.claimStatus}" required="true" >
                        <f:selectItem itemLabel="Agree" itemValue="Agree"  />
                        <f:selectItem  itemLabel="Cancel" itemValue="Cancel" />
                    </h:selectOneMenu>
                </h:panelGrid>

                <f:facet name="footer">
                    <p:commandButton  id="btnEditCalim"
                                      rendered="#{system.manager}"
                                      value="Save"
                                      icon="ui-icon-check"
                                      style="margin:0"
                                      actionListener="#{calimManagement.edit}"
                                      update=":frmViewClaim:dtViewClaim"
                                      oncomplete="CalimManagementRequest(xhr, status, args)"
                                      />
                    <p:commandButton id="btnCancelEditCalim"
                                     value="Cancel"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgEditCalim.hide();"
                                     />
                </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
